#ifndef __FUNC_LED_H__
#define __FUNC_LED_H__

typedef struct
{
  GPIO_TypeDef* gpio;
  uint16_t pin;
  uint8_t mode;
  int tick;             /*<250ms tick*/
}LEDBLINK_TYPE;

typedef struct
{
  GPIO_TypeDef* yellow_gpio;
  uint16_t yellow_pin;
  GPIO_TypeDef* blue_gpio;
  uint16_t blue_pin;
}LEDTaskParaTypeDef;

#define LED_OFF         0x00u
#define LED_ON          0x01u
#define LED_SLOW        0x02u
#define LED_FAST        0x03u
#define LED_BLINK       0x04u

void led_TaskFunction(void *pvParameters);
void LEDBlink_handler(LEDBLINK_TYPE* led);
#endif